﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Samples.Trees.BinaryTree
{
    public class Node
    {
        public Node(int data)
        {
            this.Data = data;
        }

        public Node(int data, Node left, Node right)
        {
            this.Data = data;
            this.Left = left;
            this.Right = right;
        }

        public int Data
        { get; set; }

        public Node Left
        { get; set; }

        public Node Right
        { get; set; }

        public override string ToString()
        {
            return Data.ToString();
        }
    }
}
